Skip to content

Re-export all public models from __init__.py#34

Merged
dannywillems merged 3 commits intomainfrom
re-export-public-models
Feb 8, 2026
Merged

Re-export all public models from __init__.py#34
dannywillems merged 3 commits intomainfrom
re-export-public-models

Conversation

@dannywillems
Copy link
Contributor

Summary

Consumers can now write:

from l9format import L9Event, L9Aggregation

Instead of the stuttering:

from l9format.l9format import L9Event

Closes #21
Closes #29

Test plan

  • All existing tests pass
  • Verified from l9format import L9Event, L9Aggregation, Network works
  • mypy passes

Consumers can now import directly from the package:

    from l9format import L9Event, L9Aggregation

Also defines __all__ to make the public API explicit.

Closes #21
Switch all tests to import from l9format directly instead of
l9format.l9format. Add test_all_models_importable_from_package to
verify all 30 public models are accessible from the package.
@dannywillems dannywillems force-pushed the re-export-public-models branch 2 times, most recently from 75404bd to 7adb8de Compare February 8, 2026 00:20
@dannywillems dannywillems force-pushed the re-export-public-models branch from 7adb8de to 74bccb1 Compare February 8, 2026 00:21
@dannywillems dannywillems merged commit c43803e into main Feb 8, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Define __all__ to make public API explicit Re-export public models from __init__.py

1 participant